package com.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.mall.product.entity.AttrEntity;
import com.mall.product.entity.ProductAttrValueEntity;
import com.mall.product.vo.AttrRelationVo;
import com.mall.product.vo.AttrResponseVo;
import com.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * ��Ʒ����
 *
 * @author yjv
 * @email 111111@163.com
 * @date 2024-08-04 00:42:44
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存
     * @param vo
     */
    void saveAttr(AttrVo vo);


    PageUtils queryBasePage(Long catelogId, Map<String, Object> params,String attrType);

    AttrResponseVo getAttrInfo(Long attrId);

    void updateBaseAttr(AttrVo attr);

    /**
     * 根据类型删除
     * @param  attrIds
     */
    void removeByIdsDetails(Long[] attrIds);

    List<AttrEntity> attrRelationAttr(Long attrgroupId);

    void deleteRelationn(AttrRelationVo[] vos);

    PageUtils getNoAttrRelationn(Long attrgroupId, Map<String, Object> params);

    List<Long> selectSearchAttrIds(List<Long> attrIds);

}

